package util
{
	import MyApp.Model.LoginUser;
	
	import mx.messaging.FlexClient;
	
	public class Constants
	{
		/**
		 * 登录信息
		 */ 
		public static var login_id:int=1;
		public static var login_name:String="MR";
		
		/**
		 *用户信息 
		 */		
		//public static var LOGINUSER_KEY:LoginUser;
		public static const LOGINUSER_KEY:String="user";
		
		
		public static var USER_NAME:String = "";

		/**
		 * 充值卡状态
		 */ 
		public static const CHARGEDCARD_STATUS_NEW:int=0;//编制
		public static const CHARGEDCARD_STATUS_ISSUE:int=1;//发放
		public static const CHARGEDCARD_STATUS_USE:int=2;//使用 
		/**
		 * 充值卡代表的类型
		 */ 
		public static const CHARGEDCARD_TYPE_CHARGE:int=0;//充值卡
		public static const CHARGEDCARD_TYPE_VOUCHER:int=1;//代金卷
		/**
		 *充值类型  
		 */ 
		public static const CHARGE_TYPE_CASH:int=0;//现金
		public static const CHARGE_TYPE_TRANSFER:int=1;//银行转账
		public static const CHARGE_TYPE_ONLINE:int=2;//线上
		public static const CHARGE_TYPE_CHARGEDCARD:int=3;//充值卡
		/**
		 *订单的状态 
		 */  
		public static const ORDER_STATUS_PREPARE:int=0;//待支付
		public static const ORDER_STATUS_SUCCESS:int=1;//交易成功
		public static const ORDER_STATUS_FAIL:int=2;//交易失败
		/**
		 *远程对象ip 
		 */ 
		public static const REMOTE_IP:String="/laotouzi/messagebroker/amf";
//			public static const REMOTE_IP:String="http://www.wwell.com/laotouzi/messagebroker/amf";  
		/**
		 *远程Dao的名字  
		 *    
		 */  
		public static const AUTHORITY_SER:String="authorityService";//设置权限
		public static const SER_TEST:String="demoService";
		public static const SER_USER:String="userService";
		public static const SER_WELL_GROUP:String="wellGroupService";
		public static const SER_WELL:String="wellService";
		public static const SER_REPORT:String="reportService";
		/**
		 * 基本产品(功能模块(1-店务通，2-报表通，3-短信通，4-线上通,5-会员通,6-店长通)) 
		 */
		public static const STORE_T:int = 1;
		public static const REPORT_FORMS_T:int = 2;
		public static const NOTE_T:int = 3;
		public static const ON_LINE_T:int = 4;
		public static const MEMBER_T:int = 5;
		public static const STORE_MANAGE_T:int = 6;
		
		/**
		 * 短信发送者类型(代理商、美博360、店家)
		 */ 
		public static const SMS_SEND_TYPE_AGENT:int=0;
		public static const SMS_SEND_TYPE_MEIBO:int=1;
		public static const SMS_SEND_TYPE_STORE:int=2;
		/**
		 *店的状态 0-启用 1-关闭 
		 */		
		public static const STORE_STATUE_OPEN:int = 0;
		public static const STORE_STATUE_CLOSE:int = 1;
		
		/**
		 *菜单权限标识 
		 */ 
		public static const AUTHORITY_1:String="1";//代理商管理
		public static const AUTHORITY_2:String="2";//店信息管理
		public static const AUTHORITY_3:String="3";//充值卡管理
		public static const AUTHORITY_4:String="4";//代金卷管理
		public static const AUTHORITY_5:String="5";//店家短信充值记录
		public static const AUTHORITY_6:String="6";//产品管理
		public static const AUTHORITY_7:String="7";//产品单元管理
		public static const AUTHORITY_8:String="8";//订购中心
		public static const AUTHORITY_9:String="9";//发短信
		public static const AUTHORITY_10:String="10";//短信平台
		public static const AUTHORITY_11:String="11";//短信记录
		public static const AUTHORITY_12:String="12";//发布消息
		public static const AUTHORITY_13:String="13";//员工管理
		public static const AUTHORITY_14:String="14";//权限管理
		public static const AUTHORITY_15:String="15";//版本管理
		public static const AUTHORITY_16:String="16";//数据库同步管理
		public static const AUTHORITY_17:String="17";//潜在客户管理
		
		
		/**
		 *代理商人 
		 */        
		public static const AUTHORITY_18:String="18";//新增代理商
		public static const AUTHORITY_19:String="19";//修改代理商
		public static const AUTHORITY_20:String="20";//删除代理商
		public static const AUTHORITY_21:String="21";//查看代理商
		
		public static const AUTHORITY_22:String="22";//新增店
		public static const AUTHORITY_23:String="23";//修改店
		public static const AUTHORITY_24:String="24";//删除店
		public static const AUTHORITY_25:String="25";//停用/启用店
		public static const AUTHORITY_26:String="26";//查看店
		public static const AUTHORITY_27:String="27";//查询店
		public static const AUTHORITY_28:String="28";//现金充值
		public static const AUTHORITY_29:String="29";//充值卡充值
		public static const AUTHORITY_30:String="30";//赠送金额
		public static const AUTHORITY_31:String="31";//提现
		public static const AUTHORITY_32:String="32";//查看账号明细
		public static const AUTHORITY_33:String="33";//消费
		public static const AUTHORITY_34:String="34";//查看消费明细
		public static const AUTHORITY_35:String="35";//修改店到期时间
		public static const AUTHORITY_36:String="36";//修改短信条数
		public static const AUTHORITY_37:String="37";//开启/关闭数据同步
		
		public static const AUTHORITY_38:String="38";//新增充值卡
		public static const AUTHORITY_39:String="39";//修改充值卡
		public static const AUTHORITY_40:String="40";//删除充值卡
		public static const AUTHORITY_41:String="41";//查看充值卡
		public static const AUTHORITY_42:String="42";//下发充值卡
		public static const AUTHORITY_43:String="43";//查询充值卡
		
		public static const AUTHORITY_44:String="44";//新增代金卷
		public static const AUTHORITY_45:String="45";//修改代金卷
		public static const AUTHORITY_46:String="46";//删除代金卷
		public static const AUTHORITY_47:String="47";//查看代金卷
		public static const AUTHORITY_48:String="48";//下发代金卷
		public static const AUTHORITY_49:String="49";//查询代金卷
		
		public static const AUTHORITY_50:String="50";//查看店家短信记录	
		public static const AUTHORITY_51:String="51";//查询店家短信记录
		
		public static const AUTHORITY_52:String="52";//新增产品
		public static const AUTHORITY_53:String="53";//修改产品
		public static const AUTHORITY_54:String="54";//删除产品
		public static const AUTHORITY_55:String="55";//查看产品
		public static const AUTHORITY_56:String="56";//查询产品
		
		
		public static const AUTHORITY_57:String="57";//新增产品单位
		public static const AUTHORITY_58:String="58";//修改产品单位
		public static const AUTHORITY_59:String="59";//删除产品单位
		public static const AUTHORITY_60:String="60";//查看产品单位
		public static const AUTHORITY_61:String="61";//查询产品单位
		
		public static const AUTHORITY_62:String="62";//选择店家
		public static const AUTHORITY_63:String="63";//查看店家购买的记录
		public static const AUTHORITY_64:String="64";//分类查询产品
		public static const AUTHORITY_65:String="65";//购买产品

		public static const AUTHORITY_66:String="66";//选择店家
		public static const AUTHORITY_67:String="67";//选择代理商
		public static const AUTHORITY_68:String="68";//手动添加手机号
		public static const AUTHORITY_69:String="69";//发送短信
		
		public static const AUTHORITY_70:String="70";//新增注册号
		public static const AUTHORITY_71:String="71";//激活/注销注册号
		public static const AUTHORITY_72:String="72";//充值
		public static const AUTHORITY_73:String="73";//手动添加注册记录
		public static const AUTHORITY_74:String="74";//查看充值记录
		
		public static const AUTHORITY_75:String="75";//查看短信记录
		public static const AUTHORITY_76:String="76";//查询短信记录

		public static const AUTHORITY_77:String="77";//新增消息
		public static const AUTHORITY_78:String="78";//删除消息
		public static const AUTHORITY_79:String="79";//查看消息
		
		public static const AUTHORITY_80:String="80";//新增员工
		public static const AUTHORITY_81:String="81";//修改员工
		public static const AUTHORITY_82:String="82";//删除员工
		public static const AUTHORITY_83:String="83";//查看员工
		public static const AUTHORITY_84:String="84";//修改员工密码
		public static const AUTHORITY_85:String="85";//查询员工

		public static const AUTHORITY_86:String="86";//新增角色
		public static const AUTHORITY_87:String="87";//修改角色
		public static const AUTHORITY_88:String="88";//删除角色
		public static const AUTHORITY_89:String="89";//设置权限

		public static const AUTHORITY_90:String="90";//新增版本
		public static const AUTHORITY_91:String="91";//修改版本
		public static const AUTHORITY_92:String="92";//删除版本
		public static const AUTHORITY_93:String="93";//查看版本
		public static const AUTHORITY_94:String="94";//查询版本

		public static const AUTHORITY_95:String="95";//新增非同步表
		public static const AUTHORITY_96:String="96";//修改非同步表
		public static const AUTHORITY_97:String="97";//删除非同步表
		public static const AUTHORITY_98:String="98";//查询非同步表
		
		public static const AUTHORITY_99:String="99";  //新增潜在客户
		public static const AUTHORITY_100:String="100";//修改潜在客户
		public static const AUTHORITY_101:String="101";//删除潜在客户
		public static const AUTHORITY_102:String="102";//查看潜在客户
		public static const AUTHORITY_103:String="103";//查询潜在客户
		public static const AUTHORITY_104:String="104";//查看最新沟通记录
		public static const AUTHORITY_105:String="105";//增加沟通记录
		public static const AUTHORITY_106:String="106";//修改沟通记录
		public static const AUTHORITY_107:String="107";//删除沟通记录
		public static const AUTHORITY_108:String="108";//查看沟通记录

		public static const AUTHORITY_109:String="109";//短信平台统一新增充值记录
		public static const AUTHORITY_110:String="110";//短信平台查看全部充值记录
		public static const AUTHORITY_111:String="111";//查看订单列表
		public static const AUTHORITY_112:String="112";//短信记录重发
		public static const AUTHORITY_113:String="113";//短息记录删除
		
		public static const AUTHORITY_114:String="114";//发型图库管理
		/**
		 *下发对象类型
		 * 0-代理商 1-店家 
		 */		
		
		public static const RELEASE_TO_AGENT:int = 0;
		public static const RELEASE_TO_STROE:int = 1;
		
		/**订单类型
		 * 0-店家,代理商-1  
		 */		
		public static const ORDER_BY_STORE:int= 0;
		public static const ORDER_BY_AGENT:int= 1;
		
		/**
		 *发行图库 
		 */
		public static const MAN:int=1; //男
		public static const WOMAN:int=0;//女  
		
		/**
		 * 井组类型
		 */
		public static const WELL_GROUP_TYPE_SINGLE:int=1;
		public static const WELL_GROUP_TYPE_DOUBLE:int=2;
		/**
		 * 周期类型
		 */ 
		public static const TIME_TYPE_MONTH:int=1;
		public static const TIME_TYPE_QUARTER:int=2;
		/**
		 * 产物类别
		 */ 
		public static const PRODUCT_TYPE_WATERIN:int=1;
		public static const PRODUCT_TYPE_OILIN:int=2;
		public static const PRODUCT_TYPE_PREDUCTION:int=3;
		public static const PRODUCT_TYPE_NA2SO4PERL:int=4;
		public static const PRODUCT_TYPE_NACLPERL:int=5;
		public static const PRODUCT_TYPE_NACLWATERPERL:int=6;
		public static const PRODUCT_TYPE_NA2SO4TOTAL:int=7;
		public static const PRODUCT_TYPE_NACLTOTAL:int=8;
		public static const PRODUCT_TYPE_NACLTOTALNOWATER:int=9;
		
	}
}